package com.gmsk.pocket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class PageController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index() {
        return "doc-search";
    }

    @RequestMapping(value = "admin", method = RequestMethod.GET)
    public String admin() {
        return "admin";
    }

    @RequestMapping(value = "admin-entry", method = RequestMethod.GET)
    public String adminEntry() {
        return "admin-entry";
    }

    @RequestMapping(value = "data-list", method = RequestMethod.GET)
    public String dataList() { return  "data-list"; }

    @RequestMapping(value = "data-add", method = RequestMethod.GET)
    public String dataAdd() { return  "data-add"; }

    @RequestMapping(value = "file-list", method = RequestMethod.GET)
    public String fileList() { return  "file-list"; }

    @RequestMapping(value = "doctype-add", method = RequestMethod.GET)
    public String docTypeAdd() { return  "doctype-add"; }

}
